package com.cuijq.dubbo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
public class MainApplication {

//
//    @Value("${netty.port}")
//    private int port;

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(MainApplication.class, args);
//        MainApplication application = run.getBean(MainApplication.class);
//        System.setProperty("server.port", String.valueOf(application.port));
    }
}
